import request from '@/utils/request'

// 查询合同项目的名称
export function selectProjectName(params) {
  return request({
    url: '/projectInvocie/ProjectName',
    method: 'post',
    params
  })
}

// 备案修改
export function updateRecords(data) {
  return request({
    url: '/administrative/yearRecords/updateByPrimaryKeySelective',
    method: 'POST',
    data
  })
}

// 备案修改查询
export function selectRecords(params) {
  return request({
    url: '/administrative/yearRecords/selectByPrimaryKey',
    method: 'POST',
    params
  })
}

// 备案删除
export function deleteRecords(params) {
  return request({
    url: '/administrative/yearRecords/deleteByPrimaryKey',
    method: 'POST',
    params
  })
}

// 备案信息分页查询
export function getRecordsList(params) {
  return request({
    url: '/administrative/yearRecords/selectPage',
    method: 'post',
    params
  })
}

// 备案添加
export function insertRecords(data) {
  return request({
    url: '/administrative/yearRecords/insertSelective',
    method: 'POST',
    data
  })
}

// 专业1 2级分类获取查询
export function selectProfessions() {
  return request({
    url: '/administrative/records/selectProfessions',
    method: 'POST'
  })
}

// 项目备案信息分页查询
export function getProjectRecordsList(params) {
  return request({
    url: '/administrative/records/selectPage',
    method: 'post',
    params
  })
}

// 项目备案修改查询
export function selectProjectRecords(params) {
  return request({
    url: '/administrative/records/selectByPrimaryKey',
    method: 'post',
    params
  })
}
